package com.zq.vaccinum.service.ex;

/**
 * 业务异常基类
 * @Author: zq
 * @Date: 2023/08/02/1:45
 * @Description:
 */
public class ServiceException extends RuntimeException {
    /**
     * 错误信息代码
     */
    private int code;
    /**
     * 错误内容
     */
    private String message;

    public ServiceException() {

    }

    public ServiceException(String message) {
        this.message = message;
    }

    public ServiceException(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
